package com.sgzn.sgpay.model.request;

import com.sgzn.sgpay.model.request.able.SgsReqAble;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;

/**
 * 商户登录请求
 * @author zhongzhongyong
 * @version Id: SgsMchLoginRequest.java, v 0.1 2018/5/11 23:37 zhongzhongyong Exp $$
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString(callSuper = true)
public class SgsMchLoginRequest extends SgsBaseRequest implements SgsReqAble{

    /**
     * 登录账号
     */
    @NotBlank(message = "登录账号不能为空")
    @Pattern(regexp="\\d{11}", message="loginAccount必须是11位手机号码")
    private String loginAccount;

    /**
     * 登录密码
     */
    @Length(max = 128)
    @NotBlank(message = "登录密码不能为空")
    private String password;

}
